package org.example.myleet.p532;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.findPairs(new int[]{3, 1, 4, 1, 5}, 2));
        Assert.isTrue(4 == solution.findPairs(new int[]{1, 2, 3, 4, 5}, 1));
        Assert.isTrue(1 == solution.findPairs(new int[]{1, 3, 1, 5, 4}, 0));
        Assert.isTrue(2 == solution.findPairs(new int[]{1, 3, 1, 5, 4}, 2));
        Assert.isTrue(0 == solution.findPairs(new int[]{1, 3, 2, 5, 4}, 0));
    }
}
